package br.ufrj.ppgi.greco;

import java.util.ArrayList;

import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

public class Main extends MapActivity
{
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		
		ArrayList<Ponto> gp = new ArrayList<Ponto>();
		gp.add(new Ponto(-22.858084,-43.232274,"CCMN"));
		gp.add(new Ponto(-22.861821,-43.228734,"CT"));
		gp.add(new Ponto(-22.861881,-43.223369,"REITORIA"));
		gp.add(new Ponto(-22.893511,-43.236737,"HOSPITAL"));
		
		
		
		MapView mapView = (MapView) findViewById(R.id.mapview);
		mapView.setBuiltInZoomControls(true);
		mapView.getController().setCenter(new GeoPoint(-22857027,-43230386));
		mapView.getController().setZoom(14);
	    
		  
		PlacesOverlay po = new PlacesOverlay(gp);
		
		
		mapView.getOverlays().add(po);
	
	}

	@Override
	protected boolean isRouteDisplayed()
	{
		// TODO Auto-generated method stub
		return false;
	}
}